<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fm" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>BookManager</title>
  </head>
  
  <body>
    <div>
    	<label>文档分类</label>
    	<select>
    		<option>全部</option>
    		<c:forEach items="${typeList }" var="type">
    			<option value="${type.id }">${type.name }</option>
    		</c:forEach>
    	</select> <a href="javascript:;">添加</a>    	
    </div>
    
    <div>
    	<table>
    		<thead>
    			<tr>
    				<td>编号</td>
    				<td>名称</td>
    				<td>摘要</td>
    				<td>上传人</td>
    				<td>时间</td>
    				<td>操作</td>
    			</tr>
    		</thead>
    		<tbody>
    			<c:forEach items="${list }" var="ed">
    				<tr>
    					<td>${ed.category_id }</td>
    					<td>${ed.name }</td>
    					<td>${ed.summary }</td>
    					<td>${ed.uploaduser }</td>
    					<td>${ed.createDate }</td>
    					<td>${ed.id }</td>
    				</tr>
    			</c:forEach>
    			<tr>
    				<td colspan="6">
    					<a href="edocAction?action=findPageAll&typeId=${typeId }$indexPage=1">首页</a>
    					<a href="edocAction?action=findPageAll&typeId=${typeId }$indexPage=${indexPage-1}">上一页</a>
    					<a href="edocAction?action=findPageAll&typeId=${typeId }$indexPage=${indexPage+1}">下一页</a>
    					<a href="edocAction?action=findPageAll&typeId=${typeId }$indexPage=${totalPage}">尾页</a>
    				</td>
    			</tr>
    		</tbody>
    	</table>
    </div>
  </body>
</html>















